//
//  ViewController.m
//  dongdongbook
//
//  Created by yaotd-PC on 2017/12/20.
//  Copyright © 2017年 yaotengdong. All rights reserved.
//

#import "ViewController.h"
#import "NetHandler.h"
#import <AFNetworking.h>
@interface ViewController ()
@property (nonatomic, retain) NSMutableArray *arr;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.view.backgroundColor = [UIColor redColor];
    [self handles];
    
}

- (void)handles
{
//    self.arr = [NSMutableArray array];
//    [NetHandler getDataWithUrl:@"http://app.vrey.cc/info.php?openad=0&aid=17148&token=bb9131edb25a640a268ad9ef7afc00e9&wifi=1" completion:^(NSData *data) {
//        id result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
//        NSLog(@"a === %@", result);
////        forb (NSDictionary *dic in result) {
////            EquipmentClass *class = [[EquipmentClass alloc]init];
////            [class setValuesForKeysWithDictionary:dic];
////            [self.arr addObject:class];
////        }
//////        [self.table reloadData];
//    }];
    
    
//    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
//    
//    [manager GET:@"http://book2.kingreader.com/2018048/file/U_2018048_201707141627116557_0930_1.txt?k=e9f1041ab8d89d3434362b5e75d0a5d9&t=5a658cb1" parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
//        
//    }
//         success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//             
//             NSLog(@"这里打印请求成功要做的事 = %@", responseObject);
//             
//         }
//     
//         failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull   error) {
//             
//             NSLog(@"%@",error);  //这里打印错误信息
//             
//         }];
    
 
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
